(function(K) {

    var cookies = document.cookie,
        islogin = false;

    if(K) {
        K.Env = K.Env || {};

        K.mix(K.Env, {

            'COOKIE_UID' : '_uid',

            'UID' : (function(){
                var reg = /(^| )_uid=([^;]*)(;|$)/,
                    UIDMatch = cookies.match(reg);
                islogin = !!UIDMatch;
                return UIDMatch && unescape(UIDMatch[2]);
            }()),

            'isLogin' : function() {
            	var reg = /(^| )_kxcuser=([^;]*)(;|$)/,
                    match = document.cookie.match(reg);
                return !!match;
            },

        });
    }

}(K));